@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="${order.id}">
            <input type="hidden" id="status" value="{order.status}">
            <input type="hidden" id="isYumaiValue" value="${order.isYumai}">
            <input type="hidden" id="orderNo" value="${order.orderNo}">
            <input type="hidden" id="orderInfos" value="">
            <input type="hidden" id="orderInfosValues" value="">
            <input type="hidden" id="remarksVal" value="${order.remarks}">
            <input type="hidden" id="itemSize" value="${subDicts.~size!0}" />
            <div class="row" >
                <div class="col-sm-12" >
                    <div class="col-sm-6 b-r">
                        <#input id="userName" name="客户姓名" underline="false" value="${order.userName}"/>
                        <#input id="userPhone" name="手机号码" underline="false" value="${order.userPhone}"/>
                        <#input id="address" name="客户地址"  underline="false" value="${order.address}"/>
                        <#input id="salesName" name="销售人员"  underline="false" value="${order.salesName}"/>
                        <#input id="setupName" name="安装人员"  underline="false" value="${order.setupName}"/>
                        <#select id="isYumai" name="是否预埋"  underline="false" value="${order.isYumai}" >
                            <option value="2">否</option>
                            <option value="1">是</option>
                        </#select>
                    </div>

                    <div class="col-sm-6">
                        <#input id="amount" name="订单总额" underline="false" value="${order.amount}"/>
                        <#input id="depositAmount" name="预付订金" underline="false" value="${order.depositAmount}"/>
                        <#input id="remainBalance" name="尾款金额" underline="false" value="${order.remainBalance}"/>
                        <#input id="salesTime" name="销售日期" underline="false" type="date"
                                clickFun="laydate({istime: false, format: 'YYYY-MM-DD'})" value="${order.salesTime}"/>
                        <#input id="setupTime" name="安装日期" underline="false" type="date"
                                clickFun="laydate({istime: false, format: 'YYYY-MM-DD'})" value="${order.setupTime}"/>
                        <#input id="yumaiTime" name="预埋日期" underline="false" type="date"
                                clickFun="laydate({istime: false, format: 'YYYY-MM-DD'})" value="${order.yumaiTime}"/>

                    </div>
                </div>

                <div class="col-sm-12" id="itemsArea">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">备注信息</label>
                        <div class="col-sm-10">
                            <div id="editor" class="editorHeight">
                            </div>
                        </div>
                    </div>
                </div>


                <div class="col-sm-12">
                    <#button btnCss="info" name="增加订单明细" icon="fa-plus" clickFun="UserInfoDlg.addItem()"/>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="UserInfoDlg.editSubmit(1)"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="UserInfoDlg.close()"/>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/template" id="itemTemplate">
    <div class="form-group" name="orderItem" id="orderItem">
        <label class="col-sm-2 control-label" style=";">产品类型</label>
        <div class="col-sm-2 itemProductType">
            <select  id="itemProductType2" name="itemProductType" class="form-control" onchange="UserInfoDlg.itemProductTypeChange(event)" >
                <option value="">所有</option>
                <option value="1">主机</option>
                <option value="2">超伴</option>
                <option value="3">管线机</option>
                <option value="4">开水机</option>
            </select >
        </div>
        <label class="col-sm-2 control-label" style=";">产品型号</label>
        <div class="col-sm-2 itemProductModel" >
            <select id="itemProductModel2" class="form-control" name="itemProductModel" >
                <option value="">所有</option>
            </select >
        </div>

        <label class="col-sm-1 control-label" style=";">数量</label>
        <div class="col-sm-1">
            <input class="form-control" type="text" name="itemQuantity" value="1">
        </div>
        <!--
        <label class="col-sm-1 control-label" style=";">单价</label>
        <div class="col-sm-1">
            <input class="form-control" type="text" name="itemPrice"  value="0.0">
        </div>
        -->
        <div class="col-sm-2">
            <#button btnCss="danger" name="删除" id="cancel" icon="fa-remove" clickFun="UserInfoDlg.deleteItem(event)" />
        </div>
    </div>
</script>

<script type="text/javascript" src="${ctxPath}/static/js/plugins/wangEditor/wangEditor.js"></script>
<script src="${ctxPath}/static/modular/biz/userInfo/userInfo_info.js"></script>
@}
